package com.hwh.bootdemoweb;

import java.util.ArrayList;

public class JVM {
    private static final int _512KB = 512 * 1024;
    private static final int _1MB = 1024 * 1024;
    private static final int _6MB = 1024 * 1024 * 6;
    private static final int _7MB = 1024 * 1024 * 7;
    private static final int _8MB = 1024 * 1024 * 8;

    public static void main(String[] args) throws InterruptedException {

        new Thread(()->{
            ArrayList<byte[]> list = new ArrayList<>();
            list.add(new byte[_8MB]);
            list.add(new byte[_8MB]);
        }).start();

        System.out.println("sleep.....");
        Thread.sleep(5000);
    }
}
